package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.SubjectLessonApply;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-02-26
 */
public interface SubjectLessonApplyService extends IService<SubjectLessonApply> {

    Page<SubjectLessonApply> pageList(PageUtil pageUtil, String keywords, Long lessonId, Integer status);

    int dropBean(Long id);

    boolean haveLessonId(Long lessonId);

    // 获取课次最新的申请记录id
    long getMaxId(Long lessonId);

}
